package invokservice.service;

import org.springframework.aop.framework.AopContext;
import org.springframework.stereotype.Service;

@Service
public class AopTestServiceImpl implements AopTestService {
    @Override
    public String getTest(){
        AopTestServiceImpl aopService = (AopTestServiceImpl)AopContext.currentProxy();
        System.out.println(Thread.currentThread().getName() + "-" + aopService);
        return aopService.getAbc();
    }

    public String getAbc(){
        return "123";
    }
}
